package com.camapp.file2image.model;

public class ClipPoint extends ClipBase{
	
	private float x;
	
	private float y;

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}
	
	public boolean hint(float nx, float ny) {
		float sx = nx - x;
		float sy = ny - y;
		float r = sx * sx + sy * sy - radius * radius * 3f;
		if (r <= 0) {
			x = nx;
			y = ny;
			return true;
		} else {
			return false;
		}
	}
}
